{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript">
function myFunction()
{
  if(confirm("You Want To Remove This Record")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
{/block}
{block name=body}
  <table cellpadding="0" cellspacing="0" border="1" align="center">
  		<tr>
  		  <td align="center" colspan="7"><b>Purchase Detail List</b></td>
  		</tr>
  	  <tr>
  			<th><b>Item Name</b></th>
  			<th><b>Quantity</b></th>
  			<th><b>Fat</b></th>
  			<th><b>Fat Rate</b></th>
  			<th><b>Rate</b></th>
  			<th><b>Amount</b></th>
  		</tr>
  	  {section name="sec" loop=$purchseDetailArray}
  	 <tr>
  	  <td align="left">{$purchseDetailArray[sec].itemName}</td>
  	  <td align="right">{$purchseDetailArray[sec].quantity}</td>
  	  <td align="right">{$purchseDetailArray[sec].fat}</td>
  	  <td align="right">{$purchseDetailArray[sec].fatRate}</td>
  	  <td align="right">{$purchseDetailArray[sec].rate}</td>
  	  <td align="right">{$purchseDetailArray[sec].amount}</td>
  	</tr>
  	{/section}
  </table>
</body>
{/block}